package com.example.gmallpublisher.service.impl;

import com.example.gmallpublisher.bean.TradeProvinceOrderAmount;
import com.example.gmallpublisher.bean.TradeProvinceOrderCt;
import com.example.gmallpublisher.bean.TradeProvinceUserCt;
import com.example.gmallpublisher.mapper.TradeStatsMapper;
import com.example.gmallpublisher.service.TradeStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Administrator
 * @Time 2022-08-22-15:29
 */
@Service
public class TradeStatsServiceImpl implements TradeStatsService {

    @Autowired
    TradeStatsMapper tradeStatsMapper;

    @Override
    public Double getTotalAmount(Integer date) {
        return null;
    }

    @Override
    public List<TradeProvinceUserCt> getTradeProvinceUserCt(Integer date) {
        return tradeStatsMapper.selectTradeProvinceUserCt(date);
    }

    @Override
    public List<TradeProvinceOrderCt> getTradeProvinceOrderCt(Integer date) {
        return tradeStatsMapper.selectTradeProvinceOrderCt(date);
    }

    @Override
    public List<TradeProvinceOrderAmount> getTradeProvinceOrderAmount(Integer date) {
        return tradeStatsMapper.selectTradeProvinceOrderAmount(date);
    }
}
